class A {

    public A(int a, String name) {
        _a = a;
        _name = name;
    }

    public void modifyInform() {
        _a = 100;
    }

    public void getInform() {
        System.out.println(_a);
        System.out.println(_name);
    }

    private int _a;
    private String _name;
}

public class Test {
    public static void main(String[] args) {
        A aa = new A(10, "Jack");
        aa.getInform();

        System.out.println();

        //修改过后
        aa.modifyInform();
        aa.getInform();
    }
}
